﻿namespace Profit
{
    using System;

    /// <summary>
    /// 
    /// </summary>
    public sealed class NewVersionAvailableEventArgs : EventArgs
    {
        private readonly Version _version;
        private readonly string _downloadLink;
        private readonly string _description;

        /// <summary>
        /// Initializes a new instance of the <see cref="NewVersionAvailableEventArgs"/> class.
        /// </summary>
        public NewVersionAvailableEventArgs(Version version, string downloadLink, string description = null)
        {
            _version = version;
            _downloadLink = downloadLink;
            _description = description;
        }
        /// <summary>
        /// Obtains the new version
        /// </summary>
        public Version NewVersion
        {
            get { return _version; }
        }
        /// <summary>
        /// Obtains the new version download link url
        /// </summary>
        public string DownloadLink
        {
            get { return _downloadLink; }
        }
        /// <summary>
        /// Obtains the new version description text
        /// </summary>
        public string Description
        {
            get { return _description; }
        }
    }
}